package utils

import (
	"server/internal/config"

	"github.com/zeromicro/go-zero/core/stores/redis"
	"gorm.io/gorm"
)

var Db *gorm.DB
var Rds *redis.Redis
var Conf config.Config

func Init(db *gorm.DB, rds *redis.Redis, config config.Config) {
	Db = db
	Rds = rds
	Conf = config
	AutoMigrate()
}
